package com.att.service.impl;

import com.att.bean.UserStatisticsBean;
import com.att.dao.UserStatisticsDaoMapper;
import com.att.service.UserStatisticsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("userStatisticsService")
public class UserStatisticsServiceImpl implements UserStatisticsService {

    @Resource
    private UserStatisticsDaoMapper userStatisticsDaoMapper;

    @Override
    public boolean insert(UserStatisticsBean bean) {
        return userStatisticsDaoMapper.insert(bean);
    }

    @Override
    public boolean update(UserStatisticsBean bean) {
        return userStatisticsDaoMapper.update(bean);
    }

    @Override
    public List<UserStatisticsBean> findUserStatisticsById(String userId) {
        return userStatisticsDaoMapper.findUserStatisticsById(userId);
    }
}
